#include <stdio.h>
#include <process.h>

void main(int argc,char *argv[])
	{FILE *filein,*fileout;
	 if(argc!=3){
		printf("please check you filename.\n");exit(0);
		}
	 if((filein=fopen(argv[1],"rb"))==NULL)
		{printf("Can not open filein.\n");exit(0);
		}
	 if((fileout=fopen(argv[2],"wb"))==NULL)
		{printf("Can not open fileout.\n");exit(0);
		}
	 while(!feof(filein))
			{fputc(fgetc(filein),fileout);}
	 //if(ferror(filein)==1)
	  //	{printf("The file copy successful.");}
	 fclose(filein);
	 fclose(fileout);
	 }
